FROM jenkins/jenkins:2.401.1-lts
RUN cat /etc/apt/sources.list
USER root
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN cat /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update
RUN apt-get install -y vim
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
RUN node -v
RUN npm config set registry https://registry.npm.taobao.org
RUN apt-get install -y wget
RUN apt-get install -y libltdl7
COPY ./plugins /plugins/
# mvn
RUN echo 'export MAVEN_HOME=/plugins/maven/maven-3.3.9' >> /etc/profile
RUN echo 'export PATH=$PATH:$MAVEN_HOME/bin' >> /etc/profile

RUN bash -lc 'source /etc/profile'
